import Vue from "vue";
import VueRouter from "vue-router";
import Login from "@/view/login/login.vue";
import Home from "@/view/home/index.vue";
import errorIndex from "@/view/404.vue";
Vue.use(VueRouter);
const router = new VueRouter({
    routes:[
        {
            path:"/",
            component:Login,
            name:"login"
        },
        {
            path:"/home",
            component:Home,
            name:"home"
        },
        {
            path:"/404",
            component:errorIndex,
            name:"404"
        }
    ]
})
export default router;